package com.team24.hotel.service;

import com.team24.hotel.domain.Role;

import java.util.List;

public interface RoleService {
    List<Role> findAll();

    Role findByPrimaryKey(Integer id);

    int saveOrUpdate(Role role,String permissionIds);

    int saveRoleAndPermission(Integer roleId,String permissionIds);

    int updateRoleAndPermission(Integer roleId, String permissionIds);

    int deleteRole(Integer roleId);
}
